﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Xml.Linq;
using NUnit.Framework;

namespace OSC.Foursquare.Tests
{
    [TestFixture]
    public class FoursquareSocialConnectorTests
    {
        [Test]
        public void MethodName_StateUnderTest_ExpectedBehavior()
        {
            var test =
                "<hashedAddresses>\n<personAddresses index='0'>\n<hashedAddress>7a5452b0d4f3df6ed57fe8597e7cea05</hashedAddress>\n<hashedAddress>ff9d5cf8158cc414c13443e704666c37</hashedAddress>\n<hashedAddress>c4bb722af99d4b673fa3c737a0a02045</hashedAddress>\n</personAddresses>\n</hashedAddresses>\n";

             
        }



        [Test]
        public void TestFoo()
        {
            var waitHandle = new ManualResetEvent(false);
            var connector = new FoursquareSocialConnector();
            var foo = string.Empty;
            var user = connector.Logon("mgerats", "foursquarevanne11e", out foo);


            waitHandle.WaitOne();

            Assert.AreEqual("mgerats", user.Nickname);
        }
    }
}
